//
//  EditFooterView.swift
//  KaMengApplication
//
//  Created by DUONIU_MAC on 2018/8/27.
//  Copyright © 2018年 DUONIU_MAC. All rights reserved.
//

import UIKit

class EditFooterView: UIView {

    let signOutBtn = UIButton()
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        
        self.backgroundColor = UIColor.white
        
        let grayView = UIView()
        grayView.backgroundColor = UIColor.editColor()
        self.addSubview(grayView)
        
        signOutBtn.setTitle(signOut_title, for: .normal)
        signOutBtn.setTitleColor(UIColor.red, for: .normal)
        signOutBtn.titleLabel?.font = UIFont.systemFont(ofSize: RATIO(maxNum: 14))
        self.addSubview(signOutBtn)
        
        grayView.snp.makeConstraints { (make) in
            make.left.equalToSuperview()
            make.right.equalToSuperview()
            make.top.equalToSuperview()
            make.height.equalTo(RATIO_H(maxNum: 20))
        }
        
        signOutBtn.snp.makeConstraints { (make) in
            make.centerX.equalToSuperview()
            make.centerY.equalToSuperview().offset(RATIO_H(maxNum: 10))
            make.width.greaterThanOrEqualTo(10)
            make.height.greaterThanOrEqualTo(10)
        }
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
}
